/*
 * Twanoh Library, a useful Android utility library.
 * Copyright (C) 2006 Richard Schilling
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package gnu.org.twanoh.app;

/**
 * The state of an activity. This will allow us to determine when
 * non-lifecycle methods are called. It will also be used to validate that
 * the phone is calling the activity lifecycle methods in the proper order.
 * 
 * @author rschilling
 */
public enum ActivityState {
    /**
     * '
     * uninitialized state.
     */
    PRE_CREATE,

    /**
     * onCreate has been called
     */
    ON_CREATE,

    /**
     * onStart has been called
     */
    ON_START,

    /**
     * onResume has been called - also the active running state
     */
    ON_RESUME,

    /**
     * onPause has been called
     */
    ON_PAUSE,

    /**
     * onStop has been called
     */
    ON_STOP,

    /**
     * onRestart has been called
     */
    ON_RESTART,

    /**
     * onDestroy has been called
     */
    ON_DESTROY

}
